




<div class="x-body">
    <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so">
            <input type="text" name="search_data"  placeholder="" autocomplete="off" value="{:input('search_data')}"  class="layui-input">
            <button class="layui-btn"  id="search"  url="{:url('FakeDataList')}"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
            <button class="layui-btn" ><ob_link><a  href="{:url('FakeDataAdd')}" style="color: white">新增数据</a></ob_link></button>
            <button class="layui-btn" ><ob_link><a  href="{:url('FakeDataAdd2')}" style="color: white">新增模板</a></ob_link></button>
            <a class="layui-btn layui-btn-danger" href="javascript:templateAdd();" >设置模板</a>

        </form>
    </div>
    <xblock>
        <!--<button class="layui-btn layui-btn-danger" onclick="delAll()"><i class="layui-icon"></i>批量删除</button>-->

        <span class="x-right" style="line-height:40px">共有数据：{$list.count} 条</span>
    </xblock>
    <table class="layui-table x-admin">
        <thead>
        <tr>
            <th>
                <div class="layui-unselect header layui-form-checkbox" lay-skin="primary"><i class="layui-icon">&#xe605;</i></div>
            </th>
            <th>序号</th>
            <th>交易员账号</th>
            <th>会员账号</th>
            <th>产品类型</th>
            <th>本金</th>
            <th>分红百分比</th>
            <th>交易员分红百分比</th>
<!--            <th>账号</th>-->
            <th>赢几次</th>
            <th>输几次</th>
            <th>和几次</th>
            <th>操作</th>

            <!--<th>操作</th>-->
        </thead>
        {notempty name='list.list'}
        <tbody>
        {volist name='list.list' id='vo' key="k"}
        <tr>
            <td>
                <div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id='{$vo.id}'><i class="layui-icon">&#xe605;</i></div>
            </td>
            <td>{$k}</td>
            <td>
                <div><span>{$vo.king}</span></div>


            </td>
            <td>
                <div><span>{$vo.user_name}</span></div>


            </td>
            <td>
                <div><span>{$vo.name}</span></div>

            </td>
            <td>
                <div><span>{$vo.money}</span></div>

            </td>
            <td>
                <div><span>{$vo.percent}</span></div>


            </td>
            <td>
                <div><span>{$vo.king_percent}</span></div>


            </td>
            <td>
                <div><span>{$vo.win_count}</span></div>


            </td>
            <td>
                <div><span>{$vo.loss_count}</span></div>


            </td>
            <td>
                <div><span>{$vo.draw_count}</span></div>
            </td>


            <td class="td-manage">
                <!--<a onclick="member_stop(this,'10001')" href="javascript:;"  title="启用">-->
                <!--<i class="layui-icon">&#xe601;</i>-->
                <!--</a>-->
                <ob_link><a title="编辑"  href="{:url('fakeDataEdit', array('id' => $vo['id']))}" >
                    <i class="layui-icon">&#xe642;</i>
                </a></ob_link>
                <ob_link><a title="删 除" class="ajax-get"  href="{:url('fakeDataSetStatus', array('id' => $vo['id'], 'status' => -1))}" >
                    <i class="layui-icon">&#xe640;</i>
                </a></ob_link>
                <on_link></on_link>

            </td>



        </tr>
        {/volist}
        {else/}
        <tbody><tr class="odd"><td colspan="12" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
        {/notempty}

        </tbody>
    </table>
    <div class="page">
        {notempty name='list'}   {$list.list->render()}{/notempty}
    </div>

</div>

<script>
    layui.use('form', function(){
        form = layui.form;
    });

    function templateAdd (argument) {

        var data = tableCheck.getData();
        if(data.length==0){
            alert("模板数据选择为空");
        }else{
            layer.open({
                type: 2 //此处以iframe举例
                ,title: "添加模板"
                ,area: ['90%', '90%']
                ,shade: 0
                ,maxmin: true
                ,content: "fakeDataTemplateAdd?data="+data
                ,btn: [] //只是为了演示
            });
        }
    }

</script>

</body>

</html>
